import { createRouter, createWebHashHistory } from 'vue-router'
import homeRouter from './homeRouter'
import myAccountRouter  from './myAccountRouter'
// 定义路由配置
const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    ...homeRouter, ...myAccountRouter
    
]
// 创建路由实例
const router = createRouter({
    // 路由模式 hash
    history: createWebHashHistory(),
    routes
})
// 导出router
export default router